-- Copyright 2002-2007.  Adobe Systems, Incorporated.  All rights reserved.
-- This script will run the JavaScript named MosaicTiles.js, which is assumed
-- to be in the current directory.  A copy of the MosaicTiles.js script
-- is located in the JavaScript sample scripts folder.

tell application "Adobe Photoshop CS3"
	activate

	set scriptFile to "MosaicTiles.js"

	try
		set scriptFile to scriptFile as alias

	on error errMsg number errNum
		display dialog "I could not find the file " & scriptFile & ". Please modify the script with the path to this file."
		return
	end try
	
	do javascript scriptFile
	
end tell
